import jieba
import wordcloud
# 读取文件
with open("sanguo.txt", "r", encoding="utf-8") as f:
    text = f.read()
# 分词
words = jieba.lcut(text)
